Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory handling in slot refresh #504

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

pavolmarko
Copy link

On refreshing slots, there were two issues:

  • When reusing a PKCS11_SLOT_PRIVATE structure instance, the instance to be reused was accidentally freed
  • Looking for an instance in the list of slots had bugs in pointer usage (treating slotp as an array of PKCS11_SLOT*, while it is actually a pointer to an array of PKCS11_SLOT).

On refreshing slots, there were two issues:
- When reusing a PKCS11_SLOT_PRIVATE structure instance, the instance to
  be reused was accidentally freed
- Looking for an instance in the list of slots had bugs in pointer
  usage.
@mtrojnar mtrojnar merged commit 6c96847 into OpenSC:master Aug 8, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants